﻿using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.Service.Common;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Infra.Service.Validation;

namespace Sinacor.Servico.Bovespa.Contabil.BusinessLogic
{
    /// <summary>
    /// BusinessLogic Class - ContaContabil
    /// </summary>
    public class ContaContabil : BaseBusinessLogic
    {
        #region Métodos Públicos

        /// <summary>
        /// Consultar contas contábeis
        /// </summary>
        /// <param name="parameter">BusinessEntity.Parameter.FiltroContaContabil</param>
        /// <returns>Lista de entidades de negócio do tipo BusinessEntity.ContaContabil</returns>
        public List<BusinessEntity.ContaContabil> ConsultarContasContabeis(BusinessEntity.Parameter.FiltroContaContabil parameter)
        {
            return new ResourceAccess.ContaContabil().ConsultarContasContabeis(parameter);
        }

        /// <summary>
        /// Consultar Históricos Contabeis
        /// FGualberto.7COMm - Task 6312
        /// </summary>
        /// <param name="?">FiltroHistóricoContabil</param>
        /// <returns>HistoricoContabil</returns>
        public List<BusinessEntity.HistoricoContabil> ConsultarHistoricosContabeis(BusinessEntity.Parameter.FiltroHistoricoContabil request)
        {
            List<BusinessEntity.HistoricoContabil> response = null;
            ResourceAccess.ContaContabil raHistoricoContabil = new ResourceAccess.ContaContabil();

            response = raHistoricoContabil.ConsultarHistoricosContabeis(request);

            return response;

        }

        #endregion

    }
}